import re
pattern =r'1[34578]\d{9}'
string ='中奖号码为84978981 联系方式：13611111111'
result =re.sub(pattern,'1XXXXXXXXXX',string)
print(result)